package com.example.demo.client.evt.cssmqry.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author huangyuting
 */
@ApiModel
public class UpdatePermissionByParamEvt implements Serializable {
    private static final long serialVersionUID = -6336749013287173987L;
    @ApiModelProperty("类型:1-用户、2-用户组、3-角色")
    @NotBlank
    private String type;
    @ApiModelProperty("类型对应的库表主键值")
    @NotBlank
    private String id;

    @Override
    public String toString() {
        return "UpdatePermissionByParamEvt{" +
            "type='" + type + '\'' +
            ", id='" + id + '\'' +
            '}';
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
